package com.weacar.adapter;

import android.content.Context;

import com.weacar.R;
import com.weacar.bean.HomeKeyBean;
import com.weacar.bean.TestKeyBean;
import com.zhy.adapter.abslistview.CommonAdapter;
import com.zhy.adapter.abslistview.ViewHolder;

import java.util.List;

public class HomeKeyGvAdapter extends CommonAdapter<HomeKeyBean.MsgBean> {


    public HomeKeyGvAdapter(Context context, int layoutId, List<HomeKeyBean.MsgBean> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convert(ViewHolder viewHolder, HomeKeyBean.MsgBean item, int position) {
        // 设置数据
        viewHolder.setText(R.id.tv_key, item.getName());
    }
}
